PXC Documentation

PXC Home

Object

pre 1.18

Spawn a rigidbody object.

Node Data

Display name

Object

Internal name

Node_Rigid_Object

Inheritances

Node_Rigid_Object

Inputs

Spawn

bool

Spawn

int

Spawn Frame

vec2

Spawn Position

rotation

Spawn Rotation

bool

Offset Atlas

Velocity

bool

Use Initial Velocity

vec2

Initial Velocity

Shape

surface

Texture

enum

Shape

trigger

Generate Mesh

slider

Mesh Expansion

bool

Add Pixel For Empty

Physics

int

Collision Group

bool

Affect By Force

float

Mass

slider

Friction

slider

Air Resistance

slider

Rotation Resistance

slider

Bounciness

float

Gravity Scale

Simulation

bool

Continuous

bool

Fix Rotation

bool

Sleepable

bool

Activate On Spawn

Outputs

rigid

Object


Create new Rigidbody object.



Properties


Spawn
SpawnMake object spawn when start.
Spawn FrameFrame to spawn if Spawn is off.
Spawn PositionInitial position.
Spawn RotationInitial angle.
Velocity
Initial VelocityApply velocity on start.
Shape
ShapeCollision shape.
Add Pixel For EmptyIn custom mesh mode, whether to add 1x1 pixel for empty surface.
Physics
Collision GroupMark object to only collide object of the same group.
Affect By ForceWhether to have object affected by force (gravity, collsion) or static (for floor, wall).
MassObject mass.
Air ResistanceSlow object when falling.
Rotation ResistanceAdd force for rotating object.
Gravity ScaleSet custom gravity effect.
Simulation
ContinuousCalculate collision continuously. Can be used to prevent fast moving small object from clipping thorugh thin wall.
Fix RotationForce object to not rotate.
SleepableAllow object to stop receiving collision when stop.
Activate On SpawnActivate object physics on spawn.



Commit History


1.11.0
  • Introduced

Related Links